* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0a161f;
}

.card {
    position: relative;
    overflow: hidden;
    width: 400px;
    height: 600px;
    background: #142937;
    border-radius: 20px;
    transition: 0.5s;
}

.card::before {
    content: "";
    position: absolute;
    top: -50%;
    width: 100%;
    height: 100%;
    background: rgb(247, 162, 5);
    transform: skewY(345deg);
    transition: 0.5s;
}

.card:hover::before {
    top: -70%;
    transform: skewY(390deg);
}

.card::after {
    content: "Orange Juice";
    position: absolute;
    font-size: 8em;
    bottom: 0;
    left: 0;
    /* letter-spacing: 0.1em; */
    font-weight: 600;
    color: rgba(0, 0, 0, 0.1);
}

.card .imgBx {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.card:hover .imgBx {
    top: -10%;
    transform: scale(0.7);
}

.card .contentBx {
    position: relative;
    padding: 20px;
    bottom: 10%;
    /* left: 0; */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card .contentBx h3 {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

.card .contentBx h2 {
    position: relative;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 5px;
}

.card .contentBx .buy {
    top: 200px;
    position: relative;
    width: 170px;
    height: 60px;
    opacity: 0;
    text-align: center;
    line-height: 60px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: orange;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    z-index: 999;
    transition: 0.5s;
}

.card:hover .contentBx .buy {
    top: 0;
    opacity: 1;
}